//package com.order.flowserver.config;
//
//import org.springframework.boot.actuate.autoconfigure.ExportMetricWriter;
//import org.springframework.boot.actuate.endpoint.MetricsEndpoint;
//import org.springframework.boot.actuate.endpoint.MetricsEndpointMetricReader;
//import org.springframework.boot.actuate.metrics.writer.GaugeWriter;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import com.shitou.server.monitor.KairosdbGaugeWriter;
//
//@Configuration
//@ConfigurationProperties("metrics")
//public class MetricsConfig {
//	private String url;
//
//	public void setUrl(String url) {
//		this.url = url;
//	}
//
//	@Bean
//	@ExportMetricWriter
//	public GaugeWriter metricWriter() {
//		return new KairosdbGaugeWriter(url);
//	}
//
//	@Bean
//	public MetricsEndpointMetricReader metricsEndpointMetricReader(MetricsEndpoint metricsEndpoint) {
//		return new MetricsEndpointMetricReader(metricsEndpoint);
//	}
//}
